const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy:{
      '/api':{
        target:'http://39.98.178.222:7000',
        ws:true,
        changeOrigin:true,
        pathRewrite:{
          '^/api':''    //通过pathRewrite重写路径，将前缀/api替换为空(/)
      }
    }
  }
},
})
